<?php
return [
    'common_root' => 'Root',
    'common_success' => 'Completed successfully',
    'common_error' => 'An error occurred',
    'common_sys_setting' => 'System Setting',

    'e_sys_system_error' => 'System error occurred', // 系统级错误: 未被捕获的顶层 Exception，需紧急排查
    'e_sys_database_error' => 'Database exception', // 数据服务异常:数据库连接、查询、写入等严重错误
    'e_sys_runtime_exception' => 'Runtime exception', // 系统运行时异常: 运行时错误，如文件不存在、权限不足、内存溢出等
    'e_sys_cache_error' => 'Cache exception',  // 缓存服务异常 Redis/Memcached 等连接或操作异常
    'e_sys_server_internal_error' => 'Server internal error', // 服务器内部错误: 500 服务器内部错误，请联系管理员
    'e_common_low_level_error' => 'Low level error', // 低级错误

    'e_common_invalid_param' => 'Parameter error', // 请求参数不合法 ValidateException，参数验证失败
    'e_common_record_not_found' => 'Record does not exist', // 您查找的记录不存在 ModelNotFoundException，查询结果为空
    'e_common_request_method_error' => 'Request method error', // 请求方法不支持 Http Method Not Allowed Exception
    'e_common_forbidden' => 'Access denied', // 禁止访问 权限不足，用户尝试访问未授权资源
    'e_common_unauthenticated' => 'Please log in first', // 请先完成登录 未登录或登录已失效
    'e_common_action_too_frequent' => 'Frequent operations', // 操作过于频繁，请稍后再试 接口被限流 (Rate Limiting)
    'e_common_access_token_expired' => 'The access token has expired', // 访问令牌已过期
    'e_common_multi_login_forbidden' => 'Your account has already logged in on another terminal. Please log out from the other terminal before trying again', // 您已经在其他客户端登录 禁止多端登录后，登录被禁止
    'e_common_data_validation_failed' => 'Data validation failed', // 数据验证失败
    'e_common_access_token_invalid' => 'Invalid access token', // 访问令牌无效
    'e_common_load_data_failed' => 'Data loading failed', // detail / getFormData 加载数据失败
    'e_common_add_data_failed' => 'Failed to add data', // 添加数据失败
    'e_common_update_data_failed' => 'Failed to update data', // 更新数据失败
    'e_common_delete_data_failed' => 'Data deletion failed', // 删除数据失败
    'e_common_sort_data_failed' => 'Sorting data failed', // 排序数据失败
    'e_common_has_children_data' => 'There is sub level data present', // 存在子级数据
    'e_common_already_setted' => 'This project has already been set up, please do not set it again',
    'e_common_refresh_token_expired' => 'Refresh token has expired',
    'e_common_gen_vue_not_turn_off' => 'The method without independent components cannot turn off the generation function',
    'e_common_timestamp_expired' => 'Request timestamp expired',
    'e_common_nonce_repeat' => 'Repeated requests, suspected replay attack',
    'e_common_app_not_exist' => 'The specified app does not exist',
    'e_common_signature_error' => 'Signature error',

    'e_auth_username_password_wrong' => 'Incorrect username or password',  // 用户名或密码错误 登录时校验失败
    'e_auth_user_disabled' => 'Your account has been disabled', // 您的账户已被禁用 用户状态为“禁用”
    'e_auth_verification_code_error' => 'Incorrect verification code', // 验证码错误
    'e_auth_password_not_match' => 'Password mismatch', // 密码不匹配
    'e_auth_username_exists' => 'This username has already been used', // 该用户名已被使用 创建用户时用户名冲突
    'e_auth_role_not_found' => 'The specified role does not exist', // 指定的角色不存在 为用户分配角色时，角色ID无效
    'e_auth_password_too_weak' => 'Password strength is too weak', // 密码强度太弱 密码不符合预设的复杂度规则

    'e_i18n_not_found_namespace' => 'The specified namespace does not exist, please create it first',

    'e_validate_upload_file_format_error' => 'Upload file format error',
    'e_validate_name_exists' => 'The {:attr} name already exists', // 角色名称已存在 创建角色时名称冲突
    'e_validate_in_use' => 'The {:attr} is currently in use and cannot be deleted',  // 色正在被使用，无法删除 删除角色前需与所有用户解绑角
    'e_validate_has_children' => 'This {:attr} contains submenus and cannot be deleted', // 此菜单包含子菜单，无法删除 删除菜单前需先删除其所有子菜单
    'e_validate_type_exists' => '{:attr} type already exists', // 字典类型已存在 创建字典类型时标识冲突

    'e_validate_required' => '{:attr} cannot be empty', // {:attr} 不能为空
    'e_validate_must_array' => '{:attr} must be in array format', // {:attr} 必须是数组格式
    'e_validate_must_number' => '{:attr} must be in numerical format', // {:attr} 必须是数字格式
    'e_validate_gt' => '{:attr} need to be greater than {:rule}', // {:attr} 需要大于 {:rule}
];